package com.ruoyi.device.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备基本信息对象 device_info
 * 
 * @author silence
 * @date 2025-07-19
 */
public class DeviceInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备ID */
    private Long id;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 分类ID */
    @Excel(name = "分类ID")
    private Long categoryId;

    /** 设备型号 */
    @Excel(name = "设备型号")
    private String model;

    /** 设备规格 */
    @Excel(name = "设备规格")
    private String specification;

    /** 制造商 */
    @Excel(name = "制造商")
    private String manufacturer;

    /** 供应商 */
    @Excel(name = "供应商")
    private String supplier;

    /** 采购时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采购时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseDate;

    /** 安装位置 */
    @Excel(name = "安装位置")
    private String location;

    /** 设备状态(0-停用,1-启用,2-维修中,3-报废) */
    @Excel(name = "设备状态(0-停用,1-启用,2-维修中,3-报废)")
    private Long status;

    /** 当前值 */
    private String currentValue;

    /** 设备描述 */
    @Excel(name = "设备描述")
    private String description;

    /** 故障报修信息 */
    private List<DFaultReport> DFaultReportList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }

    public void setSpecification(String specification) 
    {
        this.specification = specification;
    }

    public String getSpecification() 
    {
        return specification;
    }

    public void setManufacturer(String manufacturer) 
    {
        this.manufacturer = manufacturer;
    }

    public String getManufacturer() 
    {
        return manufacturer;
    }

    public void setSupplier(String supplier) 
    {
        this.supplier = supplier;
    }

    public String getSupplier() 
    {
        return supplier;
    }

    public void setPurchaseDate(Date purchaseDate) 
    {
        this.purchaseDate = purchaseDate;
    }

    public Date getPurchaseDate() 
    {
        return purchaseDate;
    }

    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setCurrentValue(String currentValue) 
    {
        this.currentValue = currentValue;
    }

    public String getCurrentValue() 
    {
        return currentValue;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public List<DFaultReport> getFaultReportList()
    {
        return DFaultReportList;
    }

    public void setFaultReportList(List<DFaultReport> DFaultReportList)
    {
        this.DFaultReportList = DFaultReportList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceName", getDeviceName())
            .append("categoryId", getCategoryId())
            .append("model", getModel())
            .append("specification", getSpecification())
            .append("manufacturer", getManufacturer())
            .append("supplier", getSupplier())
            .append("purchaseDate", getPurchaseDate())
            .append("location", getLocation())
            .append("status", getStatus())
            .append("currentValue", getCurrentValue())
            .append("description", getDescription())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("faultReportList", getFaultReportList())
            .toString();
    }
}
